﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace SilverZebra.DataModel
{
    public class Group : IEditableObject
    {
        [Display(Name="Id", Description="You must enter a unque id",
           Order=1)]
        [Required(ErrorMessage="Unique id is required")]
        public int Id { get; set; }

        [Display(Name="Name", Description="The name of the Class. Must be 2-30 characters long",
            Order=2)]
        [Required(ErrorMessage = "Name is required")]
        [StringLength(30, MinimumLength = 2, ErrorMessage = "Name: The length must be 2-30 characters")]
        public string Name { get; set; }

        [Display(Name = "Start year", Description = "Enter the year the course starts",
            Order=3)]
        [Required(ErrorMessage = "You must enter the year when the class begins")]
        [Range(2008, 2050, ErrorMessage="Enter a reasonable year")]
        public int StartYear { get; set; }

  //      public CourseCollection CourseList { get; set; }

        #region IEditableObject Members

        public void BeginEdit()
        {
        }

        public void CancelEdit()
        {
        }

        public void EndEdit()
        {
        }

        #endregion
    }
}
